home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The CICA Windows Explosion!
/
The CICA Windows Explosion! - Disc 2.iso
/
programr
/
msjv6-5.zip
/
WINDOS.ZIP
/
CMDLINE.C
< prev
next >
Wrap
C/C++ Source or Header
|
1991-09-01
|
425b
|
17 lines
/* CMDLINE.C */
#include <stdlib.h>
#include <stdio.h>
main(int argc, char *argv[], char *envp[])
{
extern unsigned long far pascal GetSelectorLimit(unsigned);
extern char far *_lpcmdline; // in ARGCARGV
printf("lpcmdline @ %Fp\n", _lpcmdline);
printf("PSP @ %04x\n", _psp); // in STDLIB.H
printf("PSP segment is %lu bytes\n", GetSelectorLimit(_psp) + 1);
return 0;
}